package com.cet.qz.unit01.chapter1_1;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2020-12-09 22:27
 **/
public class Qz1_1_20 {

    //求lgN!
    public static double L(int N){
        if(N == 1)
            return 0;
        return Math.log(N)+L(N-1);
    }


    public static void main(String[] args) {
        System.out.println(L(10));
    }
}
